package com.example.kemgdemo.repository;

import com.example.kemgdemo.model.KengEntity;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.List;

/**
 * 学号：1401030048
 * Created by 梁嘉伟 on 2019/7/11
 */
// todo jpa interface function
@Repository
public interface KengRepository extends BaseRepository<KengEntity, Long> {

    List<KengEntity> getByToiletEntityId(Long toiletId);

    List<KengEntity> getByIdIn(List<Long> id);
//getByToiletIdAndIsActive
    List<KengEntity> getByToiletEntityIdAndIsActive(Long toiletId, Integer isActive);
}
